package com.tencent.sr.iris.activity.common.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Configuration
@RefreshScope
@Data
public class DynamicConfig {

    @Value("${dynamicConfig.enable}")
    private Boolean enable;

    @Value("${dynamicConfig.fastFail}")
    private Boolean fastFail;

    @Value("${dynamicConfig.appId}")
    private String appId;

    @Value("${dynamicConfig.userId}")
    private String userId;

    @Value("${dynamicConfig.secretKey}")
    private String secretKey;

    @Value("${dynamicConfig.group}")
    private String group;

    @Value("${dynamicConfig.env}")
    private String env;

    @Value("${dynamicConfig.applicationName}")
    private String applicationName;

    @Value("${dynamicConfig.rainbowApiOperatorUserId}")
    private String rainbowApiOperatorUserId;

    @Value("${dynamicConfig.rainbowApiOperatorSecretKey}")
    private String rainbowApiOperatorSecretKey;

}